﻿<%@ Page Title="" Language="C#" MasterPageFile="~/HomePage.master" AutoEventWireup="true"
    CodeFile="Tagged.aspx.cs" Inherits="Tagged" %>

<%@ Import Namespace="AppCommon" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>Tagged :
        <asp:Literal runat="server" ID="litTitlePage" EnableViewState="False" />
        |
        <%= Constants.TITLE_MAIN_PAGE%></title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:UpdatePanel runat="server" UpdateMode="Conditional" RenderMode="Block">
        <ContentTemplate>
            <div class="row">
                <div class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
                    <div class="content-info-tour">
                        <ul class="nav nav-tabs" id="vyc-detail">
                            <li class="active"><a href="#list-tour" data-toggle="tab">Danh sách tour</a></li>
                            <li><a href="#list-tintuc" data-toggle="tab">Tin tức</a></li>
                        </ul>
                        <div class="tab-content">
                            <div class="tab-pane active" id="list-tour">
                                <h3>Danh sách tour có tag : <i class="label label-primary">
                                        <asp:Literal runat="server" ID="litKey" EnableViewState="False"></asp:Literal></i></h3>
                                <asp:GridView CssClass="table table-bordered" ID="gvTourTagged" DataKeyNames="Id"
                                    runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" PageSize="10"
                                    AllowPaging="true" PagerSettings-Position="TopAndBottom" OnPageIndexChanging="gv_PageIndexChanging"
                                    PagerSettings-PageButtonCount="5" AllowSorting="true" OnSorting="gv_Sorting"
                                    EmptyDataText="Chưa cập nhật dữ liệu" AutoGenerateEditButton="False" AutoGenerateColumns="False">
                                    <Columns>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <h4>
                                                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "~/tour/" + Eval("UniqueId") %>'>
                                <%# Eval("TieuDe") %>
                                                    </asp:HyperLink></h4>
                                                <p>
                                                    <%# Eval("TomTat") %>
                                                </p>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <AlternatingRowStyle BackColor="White" />     
                                    <HeaderStyle Height="0"></HeaderStyle>                                                                                                                                          
                                    <PagerSettings Mode="Numeric"></PagerSettings>
                                </asp:GridView>
                            </div>
                            <div class="tab-pane" id="list-tintuc">
                                <h3>
                                    Danh sách tin tức có tag: <i class="label label-info"><asp:Literal runat="server" ID="litKeyTintuc" EnableViewState="False"></asp:Literal></i></h3>
                                <asp:GridView CssClass="table table-bordered" ID="gvTintucTagged" DataKeyNames="Id"
                                    runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" PageSize="10"
                                    AllowPaging="true" PagerSettings-Position="TopAndBottom" OnPageIndexChanging="gv_PageIndexChanging1"
                                    PagerSettings-PageButtonCount="5" AllowSorting="true" OnSorting="gv_Sorting1"
                                    EmptyDataText="Chưa cập nhật dữ liệu" AutoGenerateEditButton="False" AutoGenerateColumns="False">
                                    <Columns>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <h4>
                                                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "~/tintuc/" + Eval("UniqueId") %>'>
                                <%# Eval("TieuDe") %>
                                                    </asp:HyperLink></h4>
                                                <p>
                                                    <%# Eval("TomTat") %>
                                                </p>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <AlternatingRowStyle BackColor="White" />     
                                    <HeaderStyle Height="0"></HeaderStyle>                                                                                                                                          
                                    <PagerSettings Mode="Numeric"></PagerSettings>
                                </asp:GridView>
                            </div>
                        </div>
                    </div>
                </div>
                <!--/ end content -->
                <div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <script>
        $('#vyc-detail a').click(function (e) {
            e.preventDefault();
            $(this).tab('show');
        });
    </script>
</asp:Content>
